import { ref } from 'vue';
import { defineStore } from 'pinia';

// 使用setup模式定义
export const roleStore = defineStore('roleStore', () => {
  const role = ref<Array<string>>(['admin']);

  function updateRole(payload:Array<string>) {
    role.value = payload;
  }
  return { role, updateRole };
});
